90201: All tests

Documentation

This is only a template. It needs to be updated.

Owners

Name Affiliation Email Start End
Geoff Shuetrim Galexy geoff@galexy.net 30-01-2008 at 00:00:00
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 31-01-2010 at 16:55:00
David North CoreFiling dtn@corefiling.com 05-08-2011 at 17:16:20
Peter Cowan CoreFiling prc@corefiling.com 20-05-2013 at 11:58:00

Test Case Variations


V-01 Works for a credit concept.

Documentation

Tests that the function works for a credit concept.

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:concept-balance(fn:node-name(/xbrli:xbrl/concept:c1[1]))

    (against file V01)

Outputs

  • Result test: count( $result ) eq 1 and $result eq 'credit'

V-02 Works for a debit concept.

Documentation

Tests that the function works for a debit concept.

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:concept-balance(fn:node-name(/xbrli:xbrl/concept:c2[1]))

    (against file V02)

Outputs

  • Result test: count( $result ) eq 1 and $result eq 'debit'

V-03 Works for an unclassified concept.

Documentation

Tests that the function works for an unclassified concept.

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V03)
  • Function Call: xfi:concept-balance(fn:node-name(/xbrli:xbrl/concept:c3[1]))

    (against file V03)

Outputs

  • Result test: count( $result ) eq 1 and $result eq ''

V-04 Non-concept QName passed to function should raise an error.

Documentation

Function-specified error for non-concept QName.

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V04)
  • Function Call: xfi:concept-balance(fn:node-name(/xbrli:xbrl))

    (against file V04)

Outputs

  • Error code: xfie:invalidConceptQName

V-05 Wrong node to function

Documentation

XPath-defined error for attempting to atomize a node node (/xbrli:xbrl) which has no typed value, so the atomization process, in preparing the data of the node for type matching, must raise FOTY0012 (no typed value).

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V05)
  • Function Call: xfi:concept-balance(/xbrli:xbrl)

    (against file V05)

Outputs

  • Error code: xqt-err:FOTY0012

V-06 Wrong node to function (token)

Documentation

XPath-defined error for node type incorrect (token).

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V06)
  • Function Call: xfi:concept-balance(/xbrli:xbrl/xbrli:context[@id='context']/xbrli:entity/xbrli:identifier[1])

    (against file V06)

Outputs

  • Error code: xqt-err:XPTY0004

V-07 Wrong node to function (monetary)

Documentation

XPath-defined error for node type incorrect (monetary).

Inputs

  • schema: balance.xsd
  • instance: instance.xml (DTS Discovery starting point) (ID=V07)
  • Function Call: xfi:concept-balance(/xbrli:xbrl/concept:c1[1])

    (against file V07)

Outputs

  • Error code: xqt-err:XPTY0004

Revisions

Name On Details
Geoff Shuetrim 04-02-2008 at 14:30:00 Created the test case.
Herm Fischer 31-01-2010 at 16:55:00 Fixed indexes [0] to be [1] above per IHR. Changed schemaRef in instance to balance.xsd.
Herm Fischer 04-02-2010 at 08:00:00 Fixed namespaces, calls, and outputs, per e-mail from Muramoto-san.
Herm Fischer 11-09-2010 at 00:00:00 Corrected test case instances which were missing decimals on numeric facts.
David North 11-09-2010 at 00:00:00 Added variations for error cases (wrong argument type and a non-concept QName being passed).
Peter Cowan 20-05-2013 at 11:58:00 Added further variations for error cases (non-QName type node arguments).
Herm Fischer 27-01-2014 at 16:00:00 Changed v-04 error code from XPTY0004 to FOTY0012 and included explanation (http://bugzilla.xbrl.org/show_bug.cgi?id=497).